# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=firectl
pkgver=0.1.0
pkgrel=3
pkgdesc="command-line tool to run Firecracker microVMs"
url="https://github.com/firecracker-microvm/firectl"
arch="x86_64 aarch64" # blocked by firecracker
license="Apache-2.0"
depends="firecracker"
makedepends="go"
source="https://github.com/firecracker-microvm/firectl/archive/v$pkgver/firectl-$pkgver.tar.gz"
options="!check" # the tests require a kernel image to be present

build() {
	make
}

package() {
	install -Dm755 firectl -t "$pkgdir"/usr/bin
}

sha512sums="
0126243bc1df87465292dd74e5d726ffdc9c4acf0cc833cbc117664b059948958e8ea086fd55ceb0074b41d06d22cf6c5e948fdd8449f1f5b067831992c4d6d3  firectl-0.1.0.tar.gz
"
